package net.xuzhen97.distributed.transaction.order.common.exception;

import lombok.Data;
import net.xuzhen97.distributed.transaction.order.common.Constant;

@Data
public class CheckException extends RuntimeException{

    private String code;

    public CheckException(String msg){
        super(msg);
        this.code = Constant.ERROR_DEFAULT;
    }

    public CheckException(String code, String msg){
        super(msg);
        this.code = code;
    }
}